import request from '@/utils/request';

export default {
  // 我的信息
  getUserInfo(id) {
    return request({
      url: `/educenter/member/getUserInfo/${id}`,
      method: 'get'
    })
  },
  updateUserInfo(data) {
    return request({
      url: `/educenter/member/editInfo`,
      method: 'post',
      data: data
    })
  },
  // 我的课程
  getMyCourses(pageNo, pageSize, memberId) {
    return request({
      url: `/educenter/member/queryMyCourses/${pageNo}/${pageSize}`,
      method: 'get',
      params: { memberId }
    })
  },
  //我的收藏
  getMyCollects(pageNo, pageSize, memberId) {
    return request({
      url: `/eduservice/edu-course-collect/getPageCollect/${pageNo}/${pageSize}`,
      method: 'get',
      params: { memberId }
    })
  },
}